package com.mooc.comment.exception;

public class IllegalParamsException extends RuntimeException {


    private static final long serialVersionUID=1L;

    private Type type;
    public IllegalParamsException(Type type,String msg){
        super(msg);
        this.type = type;
    }

    public Type type(){
        return type;
    }

    public   enum Type{
        WORNG_PAGE_NUM,WRONG_TYPE
    }


}
